import MessageTypeModel from "../../../model/HomePage/MessageTypeModel";
import MessageListModel from "../../../model/HomePage/MessageListModel";

export const dictDataTab = MessageTypeModel.hasMany(MessageListModel, {
  as: "listData",
  foreignKey: "typeId",
});

export const dictTypeTab = MessageListModel.belongsTo(MessageTypeModel, {
  as: "typeData",
  foreignKey: "typeId",
});
